package cn.stylefeng.guns.modular.hp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 首页栏目表
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-08
 */
@TableName("hp_page_content_info")
public class PageContentInfo extends Model<PageContentInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
	/**
	 * 标题
	 */
	private String title;
    /**
     * 页面内容
     */
    private String content;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 创建人
     */
    private Integer creater;
    /**
     * 乐观锁保留字段
     */
    private Integer version;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TopMenuInfo{" +
                "id=" + id +
                ", createdTime=" + createdTime +
                ", creater=" + creater +
                ", version=" + version == null ? "null":version +
                "}";
    }
}
